﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using System.Data.SqlClient;
using ECONTACT.Controller;

namespace ECONTACT
{
    public partial class frmDSHocSinhTheoLop : Form
    {
        LopCtrl m_LopCtrl = new LopCtrl();
        HocSinhCtrl m_HocSinhCtrl = new HocSinhCtrl();

        public frmDSHocSinhTheoLop()
        {
            InitializeComponent();
        }

        private void frmDSHocSinhTheoLop_Load(object sender, EventArgs e)
        {
            m_LopCtrl.HienThiComboBoxTen(cmbMaLop);
            DataService.OpenConnection();
        }

        private void btnXem_Click(object sender, EventArgs e)
        {
            //String rs = m_HocSinhCtrl.LayDsHocSinhTheoLop1(cmbMaLop.SelectedValue.ToString());
            //if (!rs.Equals("Success"))
            //{
            //    MessageBox.Show(rs);
            //}
            m_HocSinhCtrl.LayDsHocSinhTheoLop(lVXemDSHS,cmbMaLop.SelectedValue.ToString());
        }
    }
}
